
<%@page import="java.util.Vector"%><?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%
	Vector<Integer> cart = (Vector<Integer>) session
			.getAttribute("shopingcart");
	Vector<Integer> cartCount = (Vector<Integer>) session
			.getAttribute("cartCount");

	String param = (String) request.getParameter("param");
	String value = (String) request.getParameter("value");

	String[] paramName;
	String[] paramValue;
	paramName = param.split("~");
	paramValue = value.split("~");

	String fieldName = "";
	String fieldValue = "";
	for (int i = 0; i < paramName.length; i++) {
		fieldName = paramName[i];
		fieldValue = paramValue[i];
		cartCount.set(i, new Integer(Integer.parseInt(fieldValue)));
	}
	response.sendRedirect("cartTest.jsp");
%>